import React from 'react';
import { useSelector } from 'react-redux';

export default function User() {
  const user = useSelector(({ user }) => user);
  console.log('user==>', user);
  const { userInfo } = user;

  return (
    <div>
      <h3>UserPage</h3>
      <p>{JSON.stringify(userInfo)}</p>
    </div>
  );
}
